
/**
 * @author Khurana
 *
 */
public class ArrayOfObjects {

	public static void main(String[] args) 
	{
	   Bicycle bike1= new Bicycle();
	   Bicycle bike2= new Bicycle();
	   
	   
	   bike1.bicycleBrand= "Huffy";
	   bike1.bicycleHeight=12;
	   bike1.bicycleModel="DisneyPrincess";
	   
	   bike2.bicycleBrand="schwinn";
	   bike2.bicycleHeight=24;
	   bike2.bicycleModel= "Girls' ranger";
	   
	   Bicycle[] bike= new Bicycle[2];
	   bike[0]=bike1;
	   bike[1]=bike2;
	   
	   
	   for(int i=0; i<bike.length;i++)
	   {
		  
		   	System.out.println("bike[" + i + "]=" + bike[i].bicycleBrand);
		   	System.out.println("bike[" + i + "]=" + bike[i].bicycleHeight);
		   	System.out.println("bike[" + i + "]=" + bike[i].bicycleModel);
		   	System.out.println();
		   	 
	   }
	   
	   
	   for(Bicycle newBikeObject : bike)
	   {
		  
		   System.out.println("newBikeObject's brand is " + newBikeObject.bicycleBrand);
		   System.out.println("newBikeObject's height is " + newBikeObject.bicycleHeight);
		   System.out.println("newBikeObject's model is " + newBikeObject.bicycleModel);
		   System.out.println();
		   
		   
	   }
	   
	   
	   
	 }

}
